package com.movitech.mobile.cz.base.modules.config;

public enum WorkFlowLineStatusEnum {

	LINE_STATUS_PURCHASE_SCHEME("采购方案",1),
	LINE_STATUS_SUPPLIER_ENTRY("供应商入围",2),
	LINE_STATUS_BID_DOC("招标文件",3),
	LINE_STATUS_SEND_BID("发标",4),
	LINE_STATUS_ANSWER_ADDENDUM("答疑补遗",5),
	LINE_STATUS_BACK_BID("回标",6),
	LINE_STATUS_OPEN_BID("开标",7),
	LINE_STATUS_TENDER_BID("询标",8),
	LINE_STATUS_BUSINESS_NEGOTIATION("商务谈判",9),
	LINE_STATUS_EVALUATE_BID("评标",10),
	LINE_STATUS_CALIBRATION_BID("定标",11),
	LINE_STATUS_GONE_BID("流标",12),
	LINE_STATUS_TWO_BACK_BID("二轮回标",13),
	LINE_STATUS_END_CALIBRATION_BID("定标结束",99),
	LINE_STATUS_END_GONE_BID("流标结束",100);

	private String desc;
	private int code;

	private WorkFlowLineStatusEnum(String desc, int code){
		this.desc = desc;
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public static String getNameByKey(int key){
		for(WorkFlowLineStatusEnum i :WorkFlowLineStatusEnum.values()){
			if(i.getCode()==key){
				return i.getDesc();
			}
		}
		return null;
	}

}
